﻿namespace TLDRML.Tokens
{
    public class Token
    {
        public Token(TokenPosition position)
        {
            Position = position;
        }

        public TokenPosition Position { get; set; }

        public bool Equals(Token other)
        {
            return !ReferenceEquals(null, other);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != GetType()) return false;
            return Equals((Token)obj);
        }

        public override int GetHashCode()
        {
            return 0;
        }
    }
}
